<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>File Upload using Standard HTML</title>
<!--
    http://spring.io/guides/gs/uploading-files/;
    http://haolloyin.blog.51cto.com/1177454/368162/; 
-->
</head>
<body>
    Upload a file <br />
    <form name="uploadForm" method="POST" enctype="multipart/form-data"
        action="/site/mvc/fileupload/singleupload">
        File to upload: <input type="file" name="file"><br /> 
        Name: <input type="text" name="name"><br /> <br /> 
        <input type="submit" value="Upload"> Press here to upload the file!
    </form>
    <br />
    <form name="uploadForm" method="POST" enctype="multipart/form-data"
        action="/site/fileupload">
        File to upload: <input type="file" name="file"><br /> 
        Name: <input type="text" name="name"><br /> <br /> 
        <input type="submit" value="Upload"> Press here to upload the file!
    </form>
</body>
</html>